package com.ziyun.erp.modules.member.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户积分表
 *
 * @author jiangli
 * @email
 * @date 2018-08-08 14:59:30
 */
@TableName("user_point")
@Getter
@Setter
@ToString
public class UserPointEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 积分日志ID
     */
    @TableId
    private Integer id;
    /**
     * 会员ID
     */
    private Integer userId;
    /**
     * 积分阶段总结
     */
    private Integer point;
    /**
     * 改变积分
     */
    private Integer changePoint;
    /**
     * 单笔积分消耗的积分值
     */
    private Integer consumePoint;
    /**
     * 添加时间
     */
    private Date addtime;
    /**
     * 过期时间
     */
    private Date expiretime;
    /**
     * 理由
     */
    private String reason;
    /**
     * 备注
     */
    private String remark;
    /**
     * 积分关联对象ID
     */
    private Long relatedId;
    /**
     * 操作类型
     */
    private Integer type;
    /**
     * 操作员ID
     */
    private String operator;
    /**
     * 同步CRM的状态
     */
    private String status;
    /**
     * 充值推荐码
     */
    private Integer mempayCode;

}